//Source file: D:\\test\\com\\ce\\pms\\custservice\\model\\OptionsDef.java

package com.ce.pms.system.custservice.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:选项列表,针对选择型问卷题目 关联数据表:CE_OPTIONS_DEF
 *
 * @author yandawei
 * @CreateDate:2008-12-8
 */
@Entity
@Table(name = "CE_OPTIONS_DEF")
public class OptionsDef implements IDomainObject {

	@Id
	@GeneratedValue
	@Column(name = "OPTIONS_LIST")
	private Long keyword;

	/**
	 * 编码,比如A,B,C...
	 */
	@Column(name = "CODE", nullable = false, length = 1)
	private String code;

	/**
	 * 描述
	 */
	@Column(name = "DESCRIPTION", nullable = false, length = 30)
	private String description;

	/**
	 * 问卷题目
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "RETURN_VISIT_ITEM_ID")
	private ReturnVisitItemDO returnVisitItemDO;


	/**
	 * @roseuid 4937AB31031C
	 */
	public OptionsDef() {

	}


	public String getCode() {
		return code;
	}


	public void setCode(String code) {
		this.code = code;
	}


	public String getDescription() {
		return description;
	}


	public void setDescription(String description) {
		this.description = description;
	}


	public Long getKeyword() {
		return keyword;
	}


	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}


	public ReturnVisitItemDO getReturnVisitItemDO() {
		return returnVisitItemDO;
	}


	public void setReturnVisitItemDO(ReturnVisitItemDO returnVisitItemDO) {
		this.returnVisitItemDO = returnVisitItemDO;
	}
}
